Skip to content

style: add blank line after blocks before the next statement - #18

Merged
joaolfp merged 1 commit into
mainfrom
style/blank-line-after-blocks
Nov 16, 2026
Merged

joaolfp merged 1 commit into
mainfrom
style/blank-line-after-blocks

Conversation

@joaolfp

@joaolfp joaolfp commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds a blank line between a closing } of an if/for/while/match/let … else block and the next statement at the same level (e.g. a let right under a for), across all src/*.rs.
  • Formatting only — no behavior changes. Match arms, else, chained calls and struct literals are left untouched.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test (21 passed)

🤖 Generated with Claude Code


Note

Low Risk
Whitespace-only formatting with no runtime or behavioral impact; verified by fmt, clippy, and tests.

Overview
Applies a consistent Rust style rule across all src/*.rs files: inserts a blank line between a closing } of a block (if, for, while, match, let … else, etc.) and the following statement at the same indentation.

This is formatting only—no logic, APIs, or control flow changes. Match arms, else branches, and chained calls are unchanged, as described in the PR.

Reviewed by Cursor Bugbot for commit a4221d7. Bugbot is set up for automated code reviews on this repo. Configure here.

Separate a closing `}` of if/for/while/match/let-else blocks from the
statement that follows, so code is not stacked right under a block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joaolfp
joaolfp merged commit 4e26b5c into main Nov 16, 2026
5 checks passed
@joaolfp
joaolfp deleted the style/blank-line-after-blocks branch November 16, 2026 00:24
@joaolfp joaolfp mentioned this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant